<div id="porlet_1"></div>
<div id="porlet_2">
  <div class="porlet_2">
    <b>
      <a href="#">
        <!-- NAME -->
        ĐĂNG KÍ
        <!-- END - NAME-->
      </a>
    </b>
  </div>
</div>
<div id="porlet_3"></div>
<div id="porlet_4">
  <div class="porlet_4">&nbsp;</div>
</div>
<div id="porlet_5"></div>
<div style="clear:left"></div>
<div class="main_porlet">
  <!-- CONTENT -->
  <%= form_for @user, :as => :user, :url => new_user_path, :html => {:style => 'padding: 20px 25px 15px; font: 90% arial, helvetica, sans-serif;'} do |f| %>
      <div style="margin:0 40px 1.5em 0; float: left; height: 75px;">
        <strong style="font-weight: bold; margin: 0 0 0.5em; display: block; -webkit-user-select: none;">Mã nhân
          viên</strong>
        <%= f.text_field :MaNV, :style => "height: 32px; font-size: 15px; padding: 0 8px;" %>
        <%= show_field_error(@user, :MaNV) %>
      </div>

      <div style="margin:0 0 1.5em; height: 75px;">
        <strong style="font-weight: bold; margin: 0 0 0.5em; display: block; -webkit-user-select: none;">Tên nhân
          viên</strong>
        <%= f.text_field :TenNV, :style => "height: 32px; font-size: 15px; padding: 0 8px;" %>
        <%= show_field_error(@user, :TenNV) %>
      </div>

      <div style="margin:0 40px 1.5em 0; float: left; height: 75px;">
        <strong style="font-weight: bold; margin: 0 0 0.5em; display: block; -webkit-user-select: none;">Ngày sinh</strong>
        <%= f.text_field :NgaySinh, :readonly => "readonly",:style => "height: 32px; font-size: 15px; padding: 0 8px; width: 230px; -webkit-user-select: none;" %>
        <%= show_field_error(@user, :NgaySinh) %>
        <%= javascript_include_tag("jquery.ui.datepicker") %>
        <%= javascript_include_tag("jquery.ui.datepicker-vi") %>
        <script>
            $("#user_NgaySinh").datepicker({
                changeYear:true,
                changeMonth:true,
                showOn:'button',
                buttonImage:'assets/calendar_icon.gif',
                buttonImageOnly:true,
                buttonText:"Vui lòng chọn ngày..."
            });
        </script>
      </div>

      <div style="margin:0 0 1.5em; height: 75px;">
        <strong style="font-weight: bold; margin: 0 0 0.5em; display: block; -webkit-user-select: none;">Giới tính</strong>
        <%= f.radio_button :GioiTinh, "1" ,:style => "height: 32px; font-size: 15px; padding: 0 8px;", :checked => "checked" %>
        <label for="user_GioiTinh_1"  style="position: absolute; padding-top: 8px; padding-left: 8px;font-size: 15px;">Nam</label>
        <%= f.radio_button :GioiTinh, "0" ,:style => "height: 32px; font-size: 15px; padding: 0 8px; margin-left: 70px" %>
        <label for="user_GioiTinh_0"  style="position: absolute; padding-top: 8px; padding-left: 8px;font-size: 15px;">Nữ</label>
        <%= show_field_error(@user, :GioiTinh) %>
      </div>

      <div style="margin:0 40px 1.5em 0; float: left; height: 75px;">
        <strong style="font-weight: bold; margin: 0 0 0.5em; display: block; -webkit-user-select: none;">Email</strong>
        <%= f.text_field :Email, :style => "height: 32px; font-size: 15px; padding: 0 8px;" %>
        <%= show_field_error(@user, :Email) %>
      </div>

      <div style="margin:0 0 1.5em; height: 75px;">
        <strong style="font-weight: bold; margin: 0 0 0.5em; display: block; -webkit-user-select: none;">Chức vụ</strong>
        <%= f.collection_select :MaCV_id, ChucVu.all , :MaCV, :TenCV, prompt: true %>
        <%= show_field_error(@user, :ChucVu) %>
      </div>

      <div style="margin:0 40px 1.5em 0; float: left; height: 75px;">
        <strong style="font-weight: bold; margin: 0 0 0.5em; display: block; -webkit-user-select: none;">Mật khẩu</strong>
        <%= f.password_field :password, :style => "height: 32px; font-size: 15px; padding: 0 8px;" %>
        <%= show_field_error(@user, :password) %>
      </div>

      <div style="margin:0 0 1.5em; height: 75px;">
        <strong style="font-weight: bold; margin: 0 0 0.5em; display: block; -webkit-user-select: none;">Nhắc lại mật khẩu</strong>
        <%= f.password_field :password_confirmation, :style => "height: 32px; font-size: 15px; padding: 0 8px;" %>
        <%= show_field_error(@user, :password_confirmation) %>
      </div>

      <div style="vertical-align:top; margin: 9px 0 5px;">
        <%= f.check_box :remember_me %>
        <strong style="font-weight: normal; color: #666; line-height: 0; padding: 0 0 0 .4em; -webkit-user-select:none; ">Duy
          trì trạng thái đăng nhập</strong>
      </div>

      <% #recaptcha_tags   %>

      <%= f.submit 'Đăng kí', :class => "g-button-submit g-button", :style => "margin: 0 1.5em 1.2em 0; height: 32px; font-size: 13px; width: 87px;" %>
      <%= f.submit 'Nhập lại', :type => 'reset', :class => "g-button-submit g-button", :style => "margin: 0 1.5em 1.2em 0; height: 32px; font-size: 13px; width: 87px;" %>
  <% end %>
  <br style="clear:both;"/>

  <!-- END - CONTENT -->
</div>
<!-- End - Import -->
<div style="clear:both;"></div>
<!-- END - CONTENT -->
